package nina.yiyou.attendance.s10merge.start

import java.nio.file.Path
import java.nio.file.Paths

class AttendS10ArgParser {

  interface Result {

    Path workshopPath()
  }

  AttendS10ArgParser(String[] args) {
    _args = args
  }

  Result parse() {
    return new Result() {
      @Override
      Path workshopPath() {
        return Paths.get(_args ? _args[0] :
            'D:\\work\\personal\\nina\\2020yiyou\\nina_yiyou\\nina_workshop\\ninaworkshop_yiyou1.1.xlsm')
      }
    }
  }

  private final String[] _args
}
